/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Business;

import java.util.ArrayList;
import tuitionmanagement.DAO.FeeLevelDao;
import tuitionmanagement.entity.Fee;

/**
 *
 * @author XUAN
 */
public class FeeLevelBuss {

    private String lastError;
    FeeLevelDao feedao = new FeeLevelDao();

    public FeeLevelBuss() {
    }

    /**
     * Add FeeLevel
     * @param fee
     * @return boolean
     */

    public ArrayList<Fee> getTableLevelDetail() {
        return feedao.getTableLevelDetail();
    }

    public boolean addfee(Fee f) {
        return feedao.addfee(f);
    }

    public ArrayList<Fee> readByAll() {
        return feedao.readByAll();
    }

    /**
     * Update FeeLevel
     * @param fee
     * @return boolean
     */
    public boolean update(Fee fee) {
        return feedao.update(fee);
    }

    /**
     * Remove FeeLevel
     * @param FeelevelId
     * @return
     */
    public boolean delete(int FeelevelId) {
        return feedao.delete(FeelevelId);
    }

    /**
     * @return the lastError
     */
    public String getLastError() {
        return lastError;
    }

    /**
     * @param lastError the lastError to set
     */
    public void setLastError(String lastError) {
        this.lastError = lastError;
    }


}
